<!-- Modal -->
<div class="modal-dialog wide" style="width: 550px;">
<div class="modal-content">
    <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
        <h4 class="modal-title" id="myModalLabel">
            <#if ssCriteriaSecond??>
                <#if ssCriteriaSecond.id??>
                    编辑
                <#else>
                    新增
                </#if>
            </#if>
        </h4>
    </div>
    <div class="modal-body">
        <div id="errorMessage"><#include "../../message.ftl" /></div>
        <form class="form-horizontal" role="form" id="ssCriteriaSecondForm" method="post" action="${absoluteContextPath}/ss/ssCriteriaSecond/save">
            <#if ssCriteriaSecond??>
                <#if ssCriteriaSecond.id??>
                    <input type="hidden" name="id" value="${ssCriteriaSecond.id?c}"/>
                <#else>
                    <input type="hidden" name="id" value=""/>
                </#if>
            </#if>
            <div class="row">
            <div class="form-group col-md-12">
                <label class="col-sm-4 control-label"></label>
                <div class="col-sm-6">
                    <input name="id" value="${ssCriteriaSecond.id!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-12">
                <label class="col-sm-4 control-label">订单id</label>
                <div class="col-sm-6">
                    <input name="billId" value="${ssCriteriaSecond.billId!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-12">
                <label class="col-sm-4 control-label">用户id</label>
                <div class="col-sm-6">
                    <input name="userId" value="${ssCriteriaSecond.userId!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-12">
                <label class="col-sm-4 control-label">身份证</label>
                <div class="col-sm-6">
                    <input name="staffId" value="${ssCriteriaSecond.staffId!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-12">
                <label class="col-sm-4 control-label">卡号</label>
                <div class="col-sm-6">
                    <input name="cardId" value="${ssCriteriaSecond.cardId!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-12">
                <label class="col-sm-4 control-label">客户姓名</label>
                <div class="col-sm-6">
                    <input name="customerName" value="${ssCriteriaSecond.customerName!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-12">
                <label class="col-sm-4 control-label">电话</label>
                <div class="col-sm-6">
                    <input name="phone" value="${ssCriteriaSecond.phone!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-12">
                <label class="col-sm-4 control-label">年龄</label>
                <div class="col-sm-6">
                    <input name="age" value="${ssCriteriaSecond.age!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-12">
                <label class="col-sm-4 control-label">性别</label>
                <div class="col-sm-6">
                    <input name="sex" value="${ssCriteriaSecond.sex!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-12">
                <label class="col-sm-4 control-label">地址</label>
                <div class="col-sm-6">
                    <input name="address" value="${ssCriteriaSecond.address!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-12">
                <label class="col-sm-4 control-label">卡id</label>
                <div class="col-sm-6">
                    <input name="vipId" value="${ssCriteriaSecond.vipId!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-12">
                <label class="col-sm-4 control-label">大类</label>
                <div class="col-sm-6">
                    <input name="vipType" value="${ssCriteriaSecond.vipType!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-12">
                <label class="col-sm-4 control-label">产品名称</label>
                <div class="col-sm-6">
                    <input name="productName" value="${ssCriteriaSecond.productName!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-12">
                <label class="col-sm-4 control-label">金钱</label>
                <div class="col-sm-6">
                    <input name="money" value="${ssCriteriaSecond.money!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-12">
                <label class="col-sm-4 control-label">周期</label>
                <div class="col-sm-6">
                    <input name="vipCycle" value="${ssCriteriaSecond.vipCycle!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-12">
                <label class="col-sm-4 control-label">渠道</label>
                <div class="col-sm-6">
                    <input name="channelType" value="${ssCriteriaSecond.channelType!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-12">
                <label class="col-sm-4 control-label">下单日期</label>
                <div class="col-sm-6">
                    <input name="billTime" value="${ssCriteriaSecond.billTime!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-12">
                <label class="col-sm-4 control-label">周期开始时间</label>
                <div class="col-sm-6">
                    <input name="cyStart" value="${ssCriteriaSecond.cyStart!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-12">
                <label class="col-sm-4 control-label">周结束时间</label>
                <div class="col-sm-6">
                    <input name="cyEnd" value="${ssCriteriaSecond.cyEnd!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-12">
                <label class="col-sm-4 control-label">开卡日期</label>
                <div class="col-sm-6">
                    <input name="billStart" value="${ssCriteriaSecond.billStart!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-12">
                <label class="col-sm-4 control-label">结束日期</label>
                <div class="col-sm-6">
                    <input name="billEnd" value="${ssCriteriaSecond.billEnd!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-12">
                <label class="col-sm-4 control-label">引荐人</label>
                <div class="col-sm-6">
                    <input name="yjName" value="${ssCriteriaSecond.yjName!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-12">
                <label class="col-sm-4 control-label">促会人</label>
                <div class="col-sm-6">
                    <input name="chName" value="${ssCriteriaSecond.chName!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-12">
                <label class="col-sm-4 control-label">分管人</label>
                <div class="col-sm-6">
                    <input name="fgName" value="${ssCriteriaSecond.fgName!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-12">
                <label class="col-sm-4 control-label">小周期</label>
                <div class="col-sm-6">
                    <input name="vipFh" value="${ssCriteriaSecond.vipFh!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-12">
                <label class="col-sm-4 control-label">是否退会</label>
                <div class="col-sm-6">
                    <input name="vipBack" value="${ssCriteriaSecond.vipBack!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-12">
                <label class="col-sm-4 control-label">小卡号</label>
                <div class="col-sm-6">
                    <input name="recordNo" value="${ssCriteriaSecond.recordNo!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-12">
                <label class="col-sm-4 control-label">备注</label>
                <div class="col-sm-6">
                    <input name="note" value="${ssCriteriaSecond.note!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-12">
                <label class="col-sm-4 control-label"></label>
                <div class="col-sm-6">
                    <input name="billTimeEnd" value="${ssCriteriaSecond.billTimeEnd!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-12">
                <label class="col-sm-4 control-label"></label>
                <div class="col-sm-6">
                    <input name="finishStart" value="${ssCriteriaSecond.finishStart!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-12">
                <label class="col-sm-4 control-label"></label>
                <div class="col-sm-6">
                    <input name="finishEnd" value="${ssCriteriaSecond.finishEnd!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-12">
                <label class="col-sm-4 control-label"></label>
                <div class="col-sm-6">
                    <input name="createUser" value="${ssCriteriaSecond.createUser!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-12">
                <label class="col-sm-4 control-label"></label>
                <div class="col-sm-6">
                    <input name="createTime" value="${ssCriteriaSecond.createTime!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-12">
                <label class="col-sm-4 control-label">测试日期</label>
                <div class="col-sm-6">
                    <input name="testDate" value="${ssCriteriaSecond.testDate!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-12">
                <label class="col-sm-4 control-label">舒张压</label>
                <div class="col-sm-6">
                    <input name="diastolicPressure" value="${ssCriteriaSecond.diastolicPressure!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-12">
                <label class="col-sm-4 control-label">收缩压</label>
                <div class="col-sm-6">
                    <input name="systolicPressure" value="${ssCriteriaSecond.systolicPressure!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-12">
                <label class="col-sm-4 control-label">身高</label>
                <div class="col-sm-6">
                    <input name="height" value="${ssCriteriaSecond.height!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-12">
                <label class="col-sm-4 control-label">体重</label>
                <div class="col-sm-6">
                    <input name="weight" value="${ssCriteriaSecond.weight!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-12">
                <label class="col-sm-4 control-label">腰围</label>
                <div class="col-sm-6">
                    <input name="waistline" value="${ssCriteriaSecond.waistline!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-12">
                <label class="col-sm-4 control-label">BMI</label>
                <div class="col-sm-6">
                    <input name="bmi" value="${ssCriteriaSecond.bmi!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-12">
                <label class="col-sm-4 control-label">空腹血糖</label>
                <div class="col-sm-6">
                    <input name="bloodSugar" value="${ssCriteriaSecond.bloodSugar!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-12">
                <label class="col-sm-4 control-label">餐后2h血糖</label>
                <div class="col-sm-6">
                    <input name="bloodSugar2h" value="${ssCriteriaSecond.bloodSugar2h!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-12">
                <label class="col-sm-4 control-label">糖化血红蛋白</label>
                <div class="col-sm-6">
                    <input name="hemoglobin" value="${ssCriteriaSecond.hemoglobin!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-12">
                <label class="col-sm-4 control-label">丙氨酸氨基转移酶</label>
                <div class="col-sm-6">
                    <input name="alt" value="${ssCriteriaSecond.alt!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-12">
                <label class="col-sm-4 control-label">谷草转移酶</label>
                <div class="col-sm-6">
                    <input name="got" value="${ssCriteriaSecond.got!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-12">
                <label class="col-sm-4 control-label">谷氨酰转移酶</label>
                <div class="col-sm-6">
                    <input name="ggt" value="${ssCriteriaSecond.ggt!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-12">
                <label class="col-sm-4 control-label">脂肪肝</label>
                <div class="col-sm-6">
                    <input name="fattyLiver" value="${ssCriteriaSecond.fattyLiver!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-12">
                <label class="col-sm-4 control-label">甘油三酯</label>
                <div class="col-sm-6">
                    <input name="triglyceride" value="${ssCriteriaSecond.triglyceride!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-12">
                <label class="col-sm-4 control-label">胆固醇</label>
                <div class="col-sm-6">
                    <input name="cholesterol" value="${ssCriteriaSecond.cholesterol!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-12">
                <label class="col-sm-4 control-label">低密度脂蛋白胆固醇</label>
                <div class="col-sm-6">
                    <input name="CLdl" value="${ssCriteriaSecond.CLdl!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-12">
                <label class="col-sm-4 control-label"></label>
                <div class="col-sm-6">
                    <input name="testEnd" value="${ssCriteriaSecond.testEnd!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-12">
                <label class="col-sm-4 control-label"></label>
                <div class="col-sm-6">
                    <input name="spareA" value="${ssCriteriaSecond.spareA!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-12">
                <label class="col-sm-4 control-label"></label>
                <div class="col-sm-6">
                    <input name="spareB" value="${ssCriteriaSecond.spareB!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-12">
                <label class="col-sm-4 control-label"></label>
                <div class="col-sm-6">
                    <input name="spareC" value="${ssCriteriaSecond.spareC!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-12">
                <label class="col-sm-4 control-label"></label>
                <div class="col-sm-6">
                    <input name="spareD" value="${ssCriteriaSecond.spareD!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-12">
                <label class="col-sm-4 control-label"></label>
                <div class="col-sm-6">
                    <input name="spareE" value="${ssCriteriaSecond.spareE!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-12">
                <label class="col-sm-4 control-label"></label>
                <div class="col-sm-6">
                    <input name="spareF" value="${ssCriteriaSecond.spareF!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-12">
                <label class="col-sm-4 control-label"></label>
                <div class="col-sm-6">
                    <input name="spareG" value="${ssCriteriaSecond.spareG!''}" type="text" class="form-control"/>
                </div>
            </div>
            </div>
        </form>
    </div>
    <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal" aria-hidden="true">关闭</button>
        <button type="button" class="btn btn-primary" onclick="save();">保存</button>
    </div>
</div>
</div>
<script>
    function save() {
        $("#" + "ssCriteriaSecondForm").ajaxSubmit({
            success:function(data) {
                data = JSON.parse(data);
                if (data.returnCode == 1) {
                    $('#myModal').modal("hide");
                    $.showMessage({parentId:"showMessage",message:"信息保存成功！",type:"success"});
                    refreshTable();
                } else {
                    $.showMessage({parentId:"errorMessage",message:"<strong>错误信息</strong>：" + data.returnMsg,type:"error"});
                }
            }
        });
    }
</script>